/*
 * Created by JFormDesigner on Tue Jun 17 10:30:47 GMT-03:00 2008
 */

package info;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Vector;

import javax.imageio.ImageIO;
import javax.swing.*;

/**
 * @author Thyago Cassimiro
 */
public class FotosParte1 extends JPanel {
	public FotosParte1(int ifora) {
		initComponents();
		
		try {
			fundo = ImageIO.read(new File("imagem" + ifora + ".jpg"));
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	public FotosParte1() {
		initComponents();
		try {
			fundo = ImageIO.read(new File("imagem" + 0 + ".jpg"));
			
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	private void initComponents() {
		
		
		
		// JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
		// Generated using JFormDesigner Evaluation license - Thyago Cassimiro

		//======== this ========
		setBackground(Color.black);
		setPreferredSize(new Dimension(370, 450));
		setMinimumSize(new Dimension(370, 450));
		setMaximumSize(new Dimension(370, 450));

		
		setLayout(null);

		
		// JFormDesigner - End of component initialization  //GEN-END:initComponents
	}
	public void paintComponent(Graphics g) {
		super.paintComponent(g);

		g.drawImage(fundo, 0, 0, 370, 450, this);
	}

	// JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
	// Generated using JFormDesigner Evaluation license - Thyago Cassimiro
	// JFormDesigner - End of variables declaration  //GEN-END:variables
	
	int iaux;
	BufferedImage fundo;
}
